(compilation-start): In the no-async-subprocesses branch, call
authorEli Zaretskii <eliz@gnu.org>
Sun, 2 May 2004 15:36:45 +0000 (15:36 +0000)
committerEli Zaretskii <eliz@gnu.org>
Sun, 2 May 2004 15:36:45 +0000 (15:36 +0000)
sit-for to give redisplay a chance to show the updated process
status in the mode line.

lisp/progmodes/compile.el

index d31a93311b515f4638d13bb576d46ed27429f14f..376136e33ae1e0fd88c615f78d92c9334e4f6b5b 100644 (file)
@@ -944,6 +944,7 @@ Returns the compilation buffer created."
        ;; Fake modeline display as if `start-process' were run.
        (setq mode-line-process ":run")
        (force-mode-line-update)
+       (sit-for 0)                     ; Force redisplay
        (let ((status (call-process shell-file-name nil outbuf nil "-c"
                                    command)))
          (cond ((numberp status)